﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace LinqExtender.Console
{
    public class Book
    {
        public string Author { get; set; }

        public string Title { get; set; }

        public string ISBN { get; set; }

        public DateTime? LastUpdated { get; set; }

        public int ShelveId { get; set; }

        public string BookInfo
        {
            get
            {
                return "Published by:" + Author + " Under title " + Title;
            }
        }

        /// <summary>
        /// Identity inherits Unique Attribute, these will be useful for update query.
        /// </summary>
        public int Id { get; set; }
        public bool IsAvailable { get; set; }

    }
}
